﻿using System;
using System.Diagnostics;
using System.Windows.Forms;
using WebMoney.WMSignerFX.KeysExtractor.Utils;

namespace WebMoney.WMSignerFX.KeysExtractor
{
    partial class AboutForm : Form
    {
        public AboutForm()
        {
            InitializeComponent();

            //  Initialize the AboutBox to display the product information from the assembly information.
            //  Change assembly information settings for your application through either:
            //  - Project->Properties->Application->Assembly Information
            //  - AssemblyInfo.cs

            labelTitle.Text = AssemblyInfoAccessors.AssemblyTitleShortVersion;
            labelProductName.Text = AssemblyInfoAccessors.AssemblyProduct;
            labelVersion.Text = String.Format(null, "Version {0}", AssemblyInfoAccessors.AssemblyVersion);
            labelCopyright.Text = AssemblyInfoAccessors.AssemblyCopyright;
            labelCompanyName.Text = AssemblyInfoAccessors.AssemblyCompany;
            richTextBoxDescription.Text = AssemblyInfoAccessors.AssemblyDescription;
        }

        private static void logoPictureBox_Click(object sender, EventArgs e)
        {
            Process.Start("http://www.wmtransfer.com");
        }

        private static void richTextBoxDescription_LinkClicked(object sender, LinkClickedEventArgs e)
        {
            Process.Start(e.LinkText);
        }
    }
}
